package com.qf.common;

/**
 * @author zdl
 * @date 2025/3/24
 */
public class UserUtils {
    private static  ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
    public static void setUser(Integer uid){
        threadLocal.set(uid);
    }
    public static Integer getUser(){
        return threadLocal.get();
    }

    public static void removeUser(){
        threadLocal.remove();
    }
}
